function plot_learning(MouseID, user)

try
    cn_str = 'PROVIDER=SQLOLEDB; Data Source=PIA1; initial catalog=ExpLog; User ID=explog_user; password=Keller123';
    DB = adodb_connect(cn_str, 240);
    sql = ['SELECT Stacks.stackid, Stacks.expid, Stacks.comment, Experiments.siteid, Experiments.analysiscode,',...
        'Sites.animalid, Sites.project, Animals.pi FROM Stacks INNER JOIN Experiments ON Stacks.expid=Experiments.expid ' ...
        'INNER JOIN Sites ON Experiments.siteid=Sites.siteid INNER JOIN Animals ON Sites.AnimalID=Animals.AnimalID ORDER BY Stacks.stackid'];
    ExpLog = adodb_query(DB, sql);
    DB.release;
    assignin('base','ExpLog', ExpLog);
end

user = 'heinmatt';
user_ind=find(strcmp(ExpLog.pi,user));

projectID = 'M1';
project_ind=find(strcmp(ExpLog.project,projectID));

project_ind=intersect(user_ind,project_ind);
ExpIDs=unique(cell2mat(ExpLog.expid(project_ind)),'first');

ExpIDs=unique(cell2mat(ExpLog.expid(project_ind)),'first');



antemp=char(ExpLog.animalid);
antemp(:,1:10)=[];
temp=[]
for ind = 1:size(MouseID,1)
    for knd = 1:length(antemp)
        temp(ind,knd)=find(strcmp(antemp(knd,1:3), MouseID(ind,1:3))==1);
    end
end



switch user
    case 'heinmatt'
        animalids=strcat('MH_', antemp);    
end




 find(strcmp(ExpLog.animalid,'MH_130724_119') == 1)
